TrackerStateSerializer

Helper class for serializing and de-serializing the PersistedState object. This class utilizes the Simple XML Serialization libraries. The standard JAXB libraries are not used (or included) as they are too large to be suitable for a mobile application (see this StackOverflow posting).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var gson: Gson

Functions

Link copied to clipboard
open fun deserialize(jsonString: String): PersistedState
De-serialize an xml string to a PersistedState persistenceSerializer.
Link copied to clipboard
open fun serialize(persistedState: PersistedState): String
Serialize a PersistedState persistenceSerializer